package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.TwoCompany;
import com.example.demo.entity.TwoCompany2;
import com.example.demo.repository.TwoCompany2Repository;
@Service
public class TwoCompany2Service extends BaseService<TwoCompany2, Integer>{
	@Autowired
	private TwoCompany2Repository twoCompany2Dao;

	public List<TwoCompany2> findByTwoCompanyId(Integer id) {
		return twoCompany2Dao.findByTwoCompanyId(id);
	}

	public List<TwoCompany2> findByTwoCompany(TwoCompany two) {
		return twoCompany2Dao.findByTwoCompany(two);
	}
	
}
